// 职位
export interface ResponseData {
    "code": number,
    "message": string,
    "ok": boolean
}

export interface Records {
    "id"?: number | string,
    "createTime"?: string,
    "updateTime"?: string,
    "roleName": string,
}

export type RecordsList = Records[]

export interface AllRoleList extends ResponseData {
    "data": {
        "records": RecordsList,
        "total": number,
        "size": number,
        "current": number,
        "optimizeCountSql": boolean,
        "hitCount": boolean,
        "searchCount": boolean,
        "pages": number
    }
}

// 权限
export interface AclData {
    "id": number | string,
    "createTime": string,
    "updateTime": string,
    "pid": number | string,
    "name": string,
    "code": null,
    "toCode": null,
    "type": number | string,
    "status": null,
    "level": number | string,
    "children": AclDataList,
    "select": boolean
}

export type AclDataList = AclData[]

export interface allAllotAclList extends ResponseData {
    data: AclDataList
}
